package com.pie4cloud.pie.bus.api.config;

import com.pie4cloud.pie.bus.api.consumer.SnowFlake;
import com.pie4cloud.pie.bus.api.consumer.factory.IKfkFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class KfkConfig {
	@Bean
	public IKfkFactory iKfkFactory(){
       return new IKfkFactory();
	}

	@Bean
	public SnowFlake snowFlake(){
		return new SnowFlake(1,1);
	}
}
